import About from "../View/About/About.tsx";
import Home from "../View/Home/Home.tsx";
import { RouteObject } from "react-router";
import NotFound from "../Components/Error/NotFound.tsx";
const routes: RouteObject[] = [
  {
    id: "首页",
    path: "/",
    element: <Home />,
  },
  {
    id: "关于",
    path: "/about",
    element: <About />,
  },
  // {
  //   path: "/",
  //   element: <Navigate to="/home" />,
  // },
  {
    path: "*",
    Component: NotFound,
  },
];
export default routes;
